<template>
  <div class="content">
    <h2>{{ type }}分类</h2>
    <p>name:{{ name }}</p>
    <p>age:{{ age }}</p>

    <slot />
    <footer>我是底部</footer>
  </div>
</template>

<script>
export default {
  name: "Content",
  props: ["type", "name", "age", "girlFri"],
};
</script>

<style scoped>
.content {
  width: 200px;
  height: 300px;
  overflow: hidden;
  background: #ccc;
}
.content h2 {
  background: red;
}
.content footer {
  text-align: center;
  background: yellowgreen;
}
</style>
